#ifndef CORE_H
#define CORE_H

#include <QWidget>
#include "canvas.h"

class Core
{
public:
	Core(); //window defaults to true.
	Core(bool _window, QWidget* _parent = 0); //if true it runs in its own window, if not it will be imbedded in something.
	~Core();

	int go(int argc, char* argv[]); //creates application if window == true, and starts rendering.

	Canvas* createCanvas();

private:

	bool window;
	Canvas* ogl;
	QWidget* parent;

};


#endif // CORE_H
